package com.futu.scenicspot.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 景点行前准备表
 * @TableName h_preparation
 */
@TableName(value ="h_preparation")
@Data
public class HPreparation implements Serializable {
    /**
     * 行前准备ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 关联景点ID
     */
    private Long scenicSpotId;

    /**
     * 语言版本（中文/英文等）
     */
    private String language;

    /**
     * 交通建议（如地铁线路、自驾路线）
     */
    private String trafficTips;

    /**
     * 住宿建议（附近酒店推荐）
     */
    private String accommodationTips;

    /**
     * 装备建议（如登山鞋、防晒用品）
     */
    private String equipmentTips;

    /**
     * 
     */
    private Date createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        HPreparation other = (HPreparation) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getScenicSpotId() == null ? other.getScenicSpotId() == null : this.getScenicSpotId().equals(other.getScenicSpotId()))
            && (this.getLanguage() == null ? other.getLanguage() == null : this.getLanguage().equals(other.getLanguage()))
            && (this.getTrafficTips() == null ? other.getTrafficTips() == null : this.getTrafficTips().equals(other.getTrafficTips()))
            && (this.getAccommodationTips() == null ? other.getAccommodationTips() == null : this.getAccommodationTips().equals(other.getAccommodationTips()))
            && (this.getEquipmentTips() == null ? other.getEquipmentTips() == null : this.getEquipmentTips().equals(other.getEquipmentTips()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getScenicSpotId() == null) ? 0 : getScenicSpotId().hashCode());
        result = prime * result + ((getLanguage() == null) ? 0 : getLanguage().hashCode());
        result = prime * result + ((getTrafficTips() == null) ? 0 : getTrafficTips().hashCode());
        result = prime * result + ((getAccommodationTips() == null) ? 0 : getAccommodationTips().hashCode());
        result = prime * result + ((getEquipmentTips() == null) ? 0 : getEquipmentTips().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", scenicSpotId=").append(scenicSpotId);
        sb.append(", language=").append(language);
        sb.append(", trafficTips=").append(trafficTips);
        sb.append(", accommodationTips=").append(accommodationTips);
        sb.append(", equipmentTips=").append(equipmentTips);
        sb.append(", createTime=").append(createTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}